package main.java.tmi.delivery.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import main.java.tmi.common.service.impl.AbstractDao;
import main.java.tmi.delivery.service.DeliveryVO;

import org.springframework.stereotype.Repository;

/**
 * Delivery Data Access Object (cust Table)
 *
 * @author min™
 * @since 2012. 04. 24
 */
@Repository
public class DeliveryDAO extends AbstractDao {
	
	/**
	 * Delivery search
	 * @return List<DeliveryVO>
	 * @throws SQLException 
	 */
	@SuppressWarnings("unchecked")
	public List<DeliveryVO> getDeliveryView(Map<String,String> param) throws SQLException {
				
		return (List<DeliveryVO>) list("DeliveryDAO.getDeliveryView", param);
	}
	
	/**
	 * DeliveryDetail search
	 * @return List<DeliveryVO>
	 * @throws SQLException 
	 */
	@SuppressWarnings("unchecked")
	public List<DeliveryVO>  getDeliveryDetailView(Map<String,String> param) throws SQLException {

        return (List<DeliveryVO>) list("DeliveryDAO.getDeliveryDetailView", param);
	}
	
	/**
	 * DeliveryDetail modify
	 * @return void
	 * @throws SQLException 
	 */
	public void modifyDeliveryDetail(Map<String,String> param) throws SQLException {
		insert("DeliveryDAO.modifyDeliveryDetail", param);
	}
}
